import requests
#url='http://www.baoidu.com'
pdata={'name':'123','pwd':'aaa'}
header={'User-Agent': 'Mozilla/5.0'}
response=requests.get('http://www.baoidu.com/s?',params=pdata,headers=header)
print(response.status_code)
print(response.text)
print(response.encoding)
print(response.apparent_encoding)